<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

//Route::middleware('auth:api')->get('/user', function (Request $request) {
//    return $request->user();
//});




//Route::group(['prefix' => 'v1', 'namespace' => 'Api'], function(){
//
//    Route::post('login', 'AuthController@login');
//    Route::post('logout', 'AuthController@logout');
//    Route::post('refresh', 'AuthController@refresh');
//    Route::post('me', 'AuthController@me');
//
//    Route::middleware('auth:api')->get('/user', function () {
//
//        return 123;
//
//    });
//
//
//});
//
//
//
//Route::group(['prefix' => 'v2'], function(){
//
//    Route::post('login', 'WAuthController@login')->name('v2.login');
//    Route::post('logout', 'WAuthController@logout');
//    Route::post('refresh', 'WAuthController@refresh');
//    Route::post('me', 'WAuthController@me')->name('v2.me');
//});




// 后端路由
require 'apiRoutes/businessRoutes.php';











